package com.unidentifiable._5;

/**
 * @author unidentifiable
 * @date 2021/1/19
 */
public class CurrentThreadDemo {
    public static void main(String[] args) {
        Thread t = new Thread(() -> {
            System.out.println("t".equals(Thread.currentThread().getName()));
        }, "t");

        t.start();

        System.out.println("main".equals(Thread.currentThread().getName()));

    }
}
